package vuelos;

public class LoginScreenQuitar implements Runnable {
	
	private LoginScreen Window;	
	
	public LoginScreenQuitar(LoginScreen SC){
	   super();
	   Window = SC;
	}	
	
	public void run() {
	   int posY = Window.getY();
	   int posX = Window.getX();
	   while (posY < 700) {
		 try {  
		   Thread.sleep(0);
		 }
		 catch (Exception ex) {
			System.out.println(ex.getMessage()); 
		 } 
		 posY = posY + 12;
		 Window.setLocation(posX, posY);
		 Window.repaint();
	   }
	   Window.setLocation(220, 650);
	}

}
